<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title">{{ title }}</text>
		</view>
		<view class="button">
			<up-button @click="goToLogin" style="width: 180px" shape="circle" text="登录" color="linear-gradient(to right, rgb(66, 83, 216), rgb(213, 51, 186))"></up-button>
			<up-button @click="goToRegister" style="width: 180px" shape="circle" type="primary" :plain="true" text="注册"></up-button>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			title: '欢迎使用人才招聘'
		};
	},
	onLoad() {},
	methods: {
		goToLogin() {
			uni.redirectTo({
				url: '/pages/index/login'
			});
		},
		goToRegister() {
			uni.navigateTo({
				url: '/pages/index/register'
			});
		}
	}
};
</script>

<style>
.content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.logo {
	height: 280rpx;
	width: 260rpx;
	margin-top: 200rpx;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 50rpx;
}

.text-area {
	display: flex;
	justify-content: center;
}

.title {
	font-size: 36rpx;
	color: #8f8f94;
}

.button {
	display: flex;
	justify-content: space-between;
	width: 90%;
	margin-top: 100px;
}
</style>
